#ifndef FAKETEMPERATUREMODULE_H
#define FAKETEMPERATUREMODULE_H
#include "serialportmanager.h"
#include <QObject>
#include <QTimer>

class FakeTemperatureModule: public QObject
{
    Q_OBJECT
public:
    static const int INVLAID_TEMPERATURE = 155;
    static const unsigned int TEMPERATURE_STATUS_PGN = 0x1234;


    FakeTemperatureModule(quint8 sourceAddress, SerialPortManager& port, QObject* parent = NULL);

    void StartSending();
    void StopSending();

public slots:
    void SendMessage();
    void SetTemperature(int temp);
    void SetState(bool state);

private:
    quint8 SourceAddress;
    int Temperature;

    QTimer MessageSendTimer;
    SerialPortManager& PortManager;
};

#endif // FAKETEMPERATUREMODULE_H
